<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }

        .leftfix {
            float: left;
        }

        .rightfix {
            float: right;
        }

        .clearfix::after {
            content: "";
            display: block;
            clear: both;
        }

        header {
            width: 100%;
            height: 60px;
            background-color: beige;
            line-height: 60px;
        }


        footer {
            width: 100%;
            height: 100px;
            background-color: antiquewhite;
            line-height: 100px;
            margin-top: 10px;
        }

        #main {
            width: 1000px;
            margin: auto;
            margin-top: 10px;
            background-color: grey;
        }

        #left {
            width: 190px;
            background-color: chocolate;
        }

        #right {
            width: 800px;
            background-color: chocolate;
        }
    </style>
</head>

<body>
    <header>这里是头部</header>
    <div id="main" class="clearfix">
        <div id="left" class="leftfix">
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
            <p>这里是左边</p>
        </div>
        <div id="right" class="rightfix">这里是右边</div>
    </div>
    <footer>这里是脚部</footer>
</body>

</html>